using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for OrderDetails
/// </summary>
public class OrderDetails
{
    #region fields
    int id;
    int orderID;
    int itemID;
    int itemTypeID;
    string type;
    int quantity;
    decimal price;

    #endregion
    public OrderDetails()
	{
        id = -1;
        orderID = -1;
        itemID = -1;
        itemTypeID = -1;
        type = "";
        quantity = 0;
        price = 0;
	}
    public int ID
    {
        get { return this.id; }
        set { id = value; }
    }
    public int OrderID
    {
        get { return orderID; }
        set { orderID = value; }
    }
    public int ItemID
    {
        get { return itemID; }
        set { itemID = value; }
    }
    public int ItemTypeID
    {
        get { return itemTypeID; }
        set { itemTypeID = value; }
    }
    public string Type
    {
        get { return type; }
        set { type = value; }
    }
    public int Quantity
    {
        get { return quantity; }
        set { quantity = value; }
    }
    public decimal Price
    {
        get { return price; }
        set { price = value; }
    }
    public override bool Equals(object obj)
    {
        OrderDetails od = obj as OrderDetails;
        if (od == null) return false;
        return this.id==od.id;
    }
}
